package au.edu.educationau.opensource.dsm.obj;

/**
 * Represents a downloadable artifact, that is associated with a SearchResult.
 * 
 * @author vhobbs
 *
 */
public class ResultArtifact {

	/** An ID, either a link to the downloadable artifact, or an identifier 
	 * suitable for constructing links */
	protected String id = "";
	
	/** Name, suitable for link hypertext */
	protected String name = "";
	
	/** The size in bytes of the artifact */
	protected int size = 0;
	
	/** A description of the artifact */
	protected String description = "";
	
	/** An MD5 hash of the artifact */
	protected String hash = "";
	
	/** The MIME type of the artifact */
	protected String mimeType = "";

	public ResultArtifact() {
		
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}
	
	
}
